<?php

/*
 * This helper classes were originally developed by Pablo Dall'Oglio and
 *   learnt in the book "PHP: Programando com Orientação a Objetos".
 * Thanks Pablo, you helped a lot.
 * I only made some feel modifications.
 */

if (!class_exists('NonActiveSQLConnectionException')) {

    class NonActiveSQLConnectionException extends Exception {

        public function __construct() {
            $this->message = 'There is no active SQL Connection.';
        }

    }

}

Loader::includeFile('app', 'SQL/Connection');
Loader::includeFile('app', 'SQL/Transaction');

Loader::includeFile('app', 'SQL/Expression');
Loader::includeFile('app', 'SQL/Criteria');
Loader::includeFile('app', 'SQL/Filter');

Loader::includeFile('app', 'SQL/Instruction');
Loader::includeFile('app', 'SQL/Insert');
Loader::includeFile('app', 'SQL/Select');
Loader::includeFile('app', 'SQL/Update');
Loader::includeFile('app', 'SQL/Delete');
Loader::includeFile('app', 'SQL/Join');

Loader::includeFile('app', 'SQL/Repository');
?>
